package com.bdqn.bank_system.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.bank_system.pojo.Account;
import com.bdqn.bank_system.service.AccountService;
import com.bdqn.bank_system.mapper.AccountMapper;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【account】的数据库操作Service实现
* @createDate 2024-10-31 14:14:36
*/
@Service
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account>
    implements AccountService{


    @Override
    public Account login(String cardno, String password) {
        QueryWrapper<Account> qw = new QueryWrapper<>();
        qw.eq("cardno",cardno);
        qw.eq("password",password);
        Account account = super.getOne(qw);
        return account;
    }
}




